﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UtilityLibrary.Ormapping
{
    /// <summary>
    /// 对象关系映射模型类标签
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class ModelClassAttribute : Attribute
    {
        private String _tableName;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="tableName">类对应表名</param>
        public ModelClassAttribute(String tableName)
        {
            _tableName = tableName;
        }

        /// <summary>
        /// 类对应表名
        /// </summary>
        public String TableName
        {
            get
            {
                return _tableName;
            }
        }
    }
}
